//{ "allowLiterals": "in-unions-and-intersections" }
type Foo1 = {};

type Foo2 = {
  name: string;
  age: number;
};

type Foo3 = {
  name: string;
  age: number;
  walk: (miles: number) => void;
};

type Foo4 = {};